<?php
error_reporting(7);

if (!$_GET['action'] AND !$_POST['action']) {
        $_GET['action'] = "view";
} 

if ($_GET['action'] == "view") {
        $template_name = "imageDb.htm";
        require "common.php"; 
        // START 检查权限
        if (!$perm->check_permission(IMAGEDB, IMAGEDB_READ)) {
                display_nopermission();
        }
        // END 检查权限
        ///*****生成分类数据////
        require_once "tools/tree/sort.class.php";
        $tree = new SortClass($DB,'`t_reported_sys`');
        $tree->showtreelist(66);
        $treelist=$tree->showhtml;

        $selecttreelist=$tree->makeTreeSelect(66,"catetree");
        ///*****生成分类数据结束////
        $tpl->assign("treelist",$treelist);
        $tpl->assign("selecttreelist",$selecttreelist);
        //$tpl->assign("roles", $tmp);
        $tpl->output();
}